package start;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;

public class Main {
    public static void main(String[] args) {
        ConfigurableBeanFactory factory = new XmlBeanFactory(new ClassPathResource("META-INF\\beans.xml"));
        factory.addBeanPostProcessor(new MyBeanPostProcessor());
        
        XmlBeanFactory factory2 = new XmlBeanFactory(new ClassPathResource("META-INF\\beans.xml"));
        PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
        cfg.setLocation(new FileSystemResource("jdbc.properties"));
        cfg.postProcessBeanFactory(factory2);
    }
}
